# Maintainer: Norbert Pfeiler <norbert.pfeiler+aur ät gmail.com>

_realname=cppreference-qt
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=20220201
pkgrel=1
pkgdesc="A complete reference for the features in the C++ Standard Library, for qt help (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="https://en.cppreference.com/"
license=('CCPL:cc-by-sa')
source=("https://github.com/PeterFeicht/cppreference-doc/releases/download/v${pkgver}/qch-book-${pkgver}.tar.xz")
sha256sums=('ca4d0aaf0ac4f2df776a057addaa1702c39ce6a9f3ce2919500ab170858d7559')

package() {
  local _qch=cppreference-doc-en-cpp.qch
  install -Dm644 "${srcdir}/${_qch}" "${pkgdir}${MINGW_PREFIX}/share/qt6/doc/${_qch}"
}
